home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13505 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  989 b 

  1. Path: howland.reston.ans.net!psinntp!psinntp!psinntp!psinntp!usenet
  2. From: grantp@usa.pipeline.com(Pete Grant)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: NEWBIE : Quicksort
  5. Date: 26 Mar 1996 11:31:50 GMT
  6. Organization: Kalevi, Inc.
  7. Message-ID: <4j8kj6$km0@news1.h1.usa.pipeline.com>
  8. References: <Pine.SOL.3.91.960325221334.202B-100000@orion>
  9. NNTP-Posting-Host: 38.8.120.18
  10. X-PipeUser: grantp
  11. X-PipeHub: usa.pipeline.com
  12. X-PipeGCOS: (Pete Grant)
  13. X-Newsreader: Pipeline v3.5.0
  14.  
  15. On Mar 25, 1996 22:21:49 in article <Re: NEWBIE : Quicksort>, 'FRANCO
  16. <c2eyf931@sfsu.edu>' wrote: 
  17.  
  18.  
  19. >On 25 Mar 1996, Pete Grant wrote: 
  20. >>    int n = sizeof(z) / sizeof(int);  
  21. >>    qsort(z, n, sizeof(int), comp);  
  22. >>    for (int i = 0; i < n; i++)  
  23. >>       cout << ' ' << z[i];  
  24. >Pete, 
  25. >Can this be done without using qsort from the standard library <stdlib.h>?
  26.  
  27. Yes, but that's left as an exercise for the reader. 
  28. (Homework?). 
  29.  
  30. -- 
  31. Pete Grant 
  32. Kalevi, Inc. 
  33. Software Engineering & development
  34.